package itheima.domain;

import java.io.Serializable;

public class Card implements Serializable {
    private String username;
    private String id;
    private double money;

    public Card() {
    }

    public Card(String username, String id, double money) {
        this.username = username;
        this.id = id;
        this.money = money;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    @Override
    public String toString() {
        return  username + ',' +
                id + ',' +
                money;
    }
}
